# CMake 最低版本要求
cmake_minimum_required(VERSION 3.10)

# 项目名称和语言
project(env LANGUAGES CXX)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11)

# 设置输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)

# 源文件
file(GLOB SRC_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
file(GLOB MAIN_SRC ${CMAKE_CURRENT_SOURCE_DIR}/tests/*.cpp)

#设置头文件目录
set(MAIN_HEAD ${CMAKE_CURRENT_SOURCE_DIR}/include)

#添加头文件
include_directories(${MAIN_HEAD})

# 添加可执行文件
add_executable(${PROJECT_NAME} ${SRC_SRC} ${MAIN_SRC})

